package com.lims.service.common.impl;

import java.util.List;

import com.lims.dao.common.ISampleDAO;
import com.lims.po.common.Sample;
import com.lims.service.common.ISampleService;



public class SampleServiceImpl  implements ISampleService {
	private ISampleDAO sampleDAO;

	

	public boolean deleteSample(Sample sample) {
		return sampleDAO.deleteSample(sample);
	}

	public boolean deleteSampleById(int pid) {
		return sampleDAO.deleteSampleById(pid);
	}

	public boolean saveSample(Sample sample) {
		return sampleDAO.saveSample(sample);
	}

	public List<Sample> selectAll() {
		return sampleDAO.selectAll();
	}

	public boolean selectSampleBySampleTitle(String sampleTitle) {
		return sampleDAO.selectSampleBySampleTitle(sampleTitle);
	}

	public boolean updateSample(Sample sample) {
		return sampleDAO.updateSample(sample);
	}
	public Sample selectSampleById(int pid) {
		return sampleDAO.selectSampleById(pid);
	}

	public ISampleDAO getSampleDAO() {
		return sampleDAO;
	}

	public void setSampleDAO(ISampleDAO sampleDAO) {
		this.sampleDAO = sampleDAO;
	}
}
